package nc.ui.bd.ref.model;

import nccloud.framework.web.processor.refgrid.RefQueryInfo;
import nccloud.framework.web.ui.meta.RefMeta;
import nccloud.web.refer.DefaultGridRefAction;

public class GatheringBankaccRefModel extends DefaultGridRefAction {

	@Override
	public RefMeta getRefMeta(RefQueryInfo arg0) {
		RefMeta retMeta = new RefMeta();

		retMeta.setCodeField("accnum");
		retMeta.setNameField("accname");
		retMeta.setPkField("pk_bankaccbas");
		retMeta.setTableName("bd_bankaccbas");
		retMeta.setExtraFields(new String[] { "accnum", "accname" });
		retMeta.setMutilLangNameRef(false);
		setShowDisabledData(null);
		return retMeta;
	}

	@Override
	public String getOrderSql(RefQueryInfo para, RefMeta meta) {
		return " order by code ";
	}

	@Override
	public String getExtraSql(RefQueryInfo para, RefMeta meta) {
		StringBuffer sql = new StringBuffer();
		sql.append(" 11 = 11 ");
		return sql.toString();
	}
}
